﻿//////////////////////////////////////////////////////////////////////////
// main module
// author   : zhangpeng
// date     : 2012-2-6
//////////////////////////////////////////////////////////////////////////
var server = require("./server");
var route = require("./router");
var handlers = require("./requestHandlers");

var handle = {};
handle['/'] = handlers.start;
handle['/start'] = handlers.start;
handle['/upload'] = handlers.upload;
handle['/startpost'] = handlers.startPost;
handle['/show'] = handlers.show;
handle['/index'] = handlers.index;
server.start(route.route, handle);